<template>
  <div class="notes">
    <van-nav-bar
      placeholder
      title="课程笔记"
      fixed
      left-arrow
      @click-left="back"
    ></van-nav-bar>
    <div class="notes-cont">
      <div class="note-list">
        <div class="note-img">
          <img src="@img/banner.png" alt="" />
          <div class="desc">七天学会做出职场大神级PPT</div>
          <div class="tag">职场技能</div>
        </div>
      </div>
      <div class="list-title">学习笔记</div>
      <div class="list-cell">
        <baseCardSwipe :objData="objData" :isDisable="false" />
      </div>
    </div>
  </div>
</template>

<script>
import baseCardSwipe from "@/components/base-card-swipe.vue";
export default {
  components: {
    baseCardSwipe,
  },
  data() {
    return {
      listData: [
        {
          title: "七天学会做出职场大神级PPT",
          desc: "5条笔记",
        },
      ],
      objData: [
        {
          title: "这个章节是重点，重点记录",
          time: "2023-20-23 12:23:33",
          senced: "00:22:33",
        },
        {
          title: "这个章节是重点，重点记录",
          time: "2023-20-23 12:23:33",
          senced: "00:22:33",
        },
        {
          title: "这个章节是重点，重点记录",
          time: "2023-20-23 12:23:33",
          senced: "00:22:33",
        },
      ],
    };
  },
  methods: {
    back() {
      window.history.back();
    },
  },
};
</script>

<style scoped lang="scss">
.notes {
  width: 375px;
  height: 100vh;
  background: #f4f8ff;
  .notes-cont {
    padding: 14px 16px;
    .list-title {
      padding: 22px 0 9px 0;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-size: 18px;
      color: #171a1d;
      line-height: 25px;
      text-align: left;
      font-style: normal;
    }
    .list-cell {
    }
    .note-img {
      padding: 13px 16px;
      background: #ffffff;
      border-radius: 8px;
      position: relative;
      img {
        width: 100%;
        height: 178px;
      }
      .desc {
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: #1e1e28;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        padding: 10px 0 7px 0;
      }
      .tag {
        position: absolute;
        top: 40px;
        background: #fff;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        padding: 2px 12px;
        font-size: 12px;
        color: #64a6ee;
      }
    }
  }
  ::v-deep {
    .van-nav-bar__placeholder {
      background: #ffffff;
    }
  }
}
</style>
